package com.gofaraway.common.exception;

import lombok.Getter;

import java.io.Serializable;

/**
 * @author ChenPeng
 * @Date 2024/5/17 9:21
 */
@Getter
public class STORuntimeException extends RuntimeException implements Serializable {
    private Error error;

    public STORuntimeException() {
    }

    public STORuntimeException(Error error) {
        super(error.toString());
        this.error = error;
    }

    public STORuntimeException(Error error, Throwable cause) {
        super(error.toString(), cause);
        this.error = error;
    }

}
